home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Unix / WhosOnFirst / ReadMe.V1 < prev    next >
Text File  |  1995-06-12  |  2KB  |  50 lines

  1. Greetings..
  2.  
  3.     This is a simple program I wrote so that I could learn 
  4. how to display Icons on the screen.  It's not GREAT code.  I actually
  5. wrote my own linked list handing routines instead of using the 
  6. objective C ones...  I was so intent on figuring out icons, I didn't
  7. want to bother looking at the List Object :-).  Maybe next version.
  8.  
  9. Structure
  10.  
  11.     Each icon is a window.  The window has no minuaturize or
  12. close buttons so the content view is basically the icon.  The 
  13. contentView of the window is an instance of IconView.  IconView 
  14. simply implements the drawself, init, and set instance variable 
  15. methods (nothing too special).  The whole thing is very little 
  16. code and it should be pretty easy to figure out.  I have alread 
  17. received lots of responses about this program so it looks like I'll
  18. be adding some enhancements in the near future.
  19.  
  20. Workings
  21.  
  22.     A c function (called who) is called every 5 seconds using
  23. the DPS timed entry call.  This function performs the following 
  24. tasks:
  25.  
  26.     Maps /etc/utmp file into memory.
  27.  
  28.     Checks all entries against its own linked list.
  29.         If entry exists, that entry is marked.
  30.         If entry does not exist, it is set up and entered
  31.          into the list.
  32.  
  33.     All entries in the linked list which are no longer in the
  34.      /etc/utmp file are removed from the list, objects freed, etc.
  35.  
  36.     Icons are displayed as the list is traversed.
  37.  
  38.     Closes memory mapping.
  39.  
  40. NOTE: Thanks to Jayson Adams whose ALTDOCK program helped me to 
  41.     understand how Icons "work".
  42.  
  43. Please send any questions or comments to me at:
  44.  
  45.     schock@flip.cpsc.ucalgary.ca
  46.  
  47. Enjoy the program and Code.
  48.  
  49. Craig
  50.